<template>
  <modal @register="registerModal">
    adadsfasdf
  </modal>
</template>

<script setup lang="ts">
import { modal, useModal } from '@/components/Modal/index.ts'
import { ElMessage } from 'element-plus'

const { openModal, registerModal } = useModal((data) => {
  ElMessage(data)
})
defineExpose({ openModal })
</script>

<style scoped>

</style>